package zms.roya.xuexi.oop.quanxian;

public class staticpu {

	private int id;
	private static int nextid;

	{
		id = nextid;
		nextid++;
	}

	public static void main(String[] args) {
		
		staticpu xy=new staticpu();
		staticpu xy2=new staticpu();
		staticpu xy3=new staticpu();
		staticpu xy4=new staticpu();
		System.out.println(xy4.id);
		System.out.println(nextid);

	}

}
